package com.tyx.chargingpile.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 电桩信息
 */
public class ChargingPileInfo implements Serializable {
    /**
     * 电桩编号
     */
    @JSONField(name = "DeviceId")
    private String DeviceId;
    /**
     * 电桩状态
     */
    @JSONField(name = "DeviceStatus")
    private Integer DeviceStatus;
    /**
     * 枪数量
     */
    @JSONField(name = "GunNum")
    private Integer GunNum;

    /**
     * 电枪当前数据
     */
    @JSONField(name = "GunList")
    private List<GunInfo> GunList;

    /**
     * 结果状态，0--异常,1--正常
     */
    @JSONField(name = "Result")
    private Integer Result;

    /**
     * 添加枪信息
     * @param gunInfo
     */
    public void addGunList(GunInfo gunInfo){
        GunList.add(gunInfo);
    }

    /** 电桩编号 */
    public String getDeviceId() {
        return DeviceId;
    }

    /** 电桩编号 */
    public void setDeviceId(String deviceId) {
        DeviceId = deviceId;
    }

    /** 电桩状态 */
    public Integer getDeviceStatus() {
        return DeviceStatus;
    }

    /** 电桩状态 */
    public void setDeviceStatus(Integer deviceStatus) {
        DeviceStatus = deviceStatus;
    }

    /** 枪数量 */
    public Integer getGunNum() {
        return GunNum;
    }

    /** 枪数量 */
    public void setGunNum(Integer gunNum) {
        GunNum = gunNum;
    }

    /** 电枪当前数据 */
    public List<GunInfo> getGunList() {
        return GunList;
    }

    /** 电枪当前数据 */
    public void setGunList(List<GunInfo> gunList) {
        GunList = gunList;
    }

    public Integer getResult() {
        return Result;
    }

    public void setResult(Integer result) {
        Result = result;
    }
}
